package com.bgs.service.impl;

import com.bgs.dao.ClassroomMapper;
import com.bgs.pojo.Classroom;
import com.bgs.pojo.vo.ClassroomVO;
import com.bgs.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {

    @Autowired
    private ClassroomMapper cM;


    @Override
    public List<Classroom> findAllandmohu(Classroom classroom) {
        return cM.findAllandmohu(classroom);
    }

    @Override
    public int insertSelective(Classroom c) {
        return cM.insertSelective(c);
    }

    @Override
    public int updateByPrimaryKeySelective(ClassroomVO cVO) {
        return cM.updateByPrimaryKeySelective(cVO);
    }

    @Override
    public int deleteById(Integer pkId) {
        return cM.deleteByPrimaryKey(pkId);
    }

    @Override
    public List<Classroom> findAllxlk() {
        return cM.findAllxlk();
    }

    @Override
    public List<Classroom> findAllxlkbn(ClassroomVO classroom) {
        return cM.findAllxlkbn(classroom);
    }

    @Override
    public List<Classroom> findAllxlkbf(ClassroomVO classroom) {
        return cM.findAllxlkbf(classroom);
    }
}

